home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / TimGA 1.2.1 / .h / CGraphWindow.h < prev    next >
Encoding:
Text File  |  1997-07-16  |  1.5 KB  |  57 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CGraphWindow.h        ©1995-97 Timo Eloranta        All rights reserved.
  3. // ===========================================================================
  4. //    CGraphWindow.cp        (press Command-Tab to open the associated source file)
  5.  
  6. #pragma once
  7.  
  8. #include <LWindow.h>
  9. #include <LCaption.h>
  10. #include <URegistrar.h>
  11.  
  12. #include "CGraphPane.h"
  13. #include "CPopulation.h"
  14.  
  15. class    CGraphGAApp;
  16.  
  17. class    CGraphWindow : public LWindow {
  18.  
  19. public:
  20.     enum { class_ID = 'GrWi' };
  21.     
  22.                         CGraphWindow(LStream *inStream);
  23.  
  24.         virtual void    DoSetZoom(Boolean inZoomToStdState);
  25.     
  26.         CGraphPane*        GetGraphPane() 
  27.                             { return mGraphPane; };
  28.                             
  29.         void            ResetSuperCommanderToApp();
  30.     
  31.         void            UpdateGraphInfo( CPopulation *inPop = nil );
  32.         void            UpdatePopInfo(    Boolean inPopSizeToo = false,
  33.                                         CPopulation *inPop = nil );
  34.         void            UpdateIterStateInfo( EIterState inIterState 
  35.                                                 = iter_NoGraph );
  36.         void            UpdateBestInfo( Boolean inBestHasChanged,
  37.                                         CPopulation *inPop = nil );
  38.                                         
  39. private:
  40.     CGraphGAApp        * mApp;            // The app which owns this window!
  41.     CGraphPane        * mGraphPane;    // The pane that shows the best graph...
  42.  
  43.     LCaption        * mPopSizeCapt;
  44.     LCaption        * mCurGenerCapt;
  45.     LCaption        * mRunningCapt;
  46.     LCaption        * mLeastCapt;
  47.     LCaption        * mAverageCapt;
  48.     LCaption        * mIterCapt;
  49.     LCaption        * mFitnessCapt;
  50.     LCaption        * mBestGenCapt;
  51.     LCaption        * mNoGenCapt;
  52.     LCaption        * mNoTimeCapt;
  53.  
  54. protected:
  55.     virtual void    FinishCreateSelf();
  56. };
  57.